package com.wing.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;


/**
 * 测试JOB
 *
 * @author
 */
@Slf4j
@Component
public class TestJob extends QuartzJobBean {

    @Override
    @Transactional(rollbackFor = Exception.class)
    protected void executeInternal(JobExecutionContext jobExecutionContext) {
        log.info("************测试JOB***************");
    }

}
